package com.kingbull.recorder;

import com.kingbull.recorder.slice.MainAbilitySlice;
import com.kingbull.recorder.utils.PermissionUtils;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.utils.Color;
import ohos.agp.window.service.WindowManager;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
        String[] permissions = new String[]{
                "ohos.permission.WRITE_USER_STORAGE",
                "ohos.permission.READ_USER_STORAGE",
                "ohos.permission.MICROPHONE",
        };
        PermissionUtils.getCameraPermission(permissions, this);
        WindowManager.getInstance().getTopWindow().get().setStatusBarColor(Color.getIntColor("#3F51B5"));
    }


}
